<?php
class MasterSalariesFForm extends BaseFormAdmin{
	public function configure(){
		$this->setWidgets(array(
				'salary_from'        => new sfWidgetFormInputText(),
				'salary_to' 		=> new sfWidgetFormInputText(),				
		));

		$this->setValidators(array(
				'salary_from'        => new sfValidatorString(array('required' => false)),
				'salary_to' 		 => new sfValidatorString(array('required' => false)),
				
		));
		
		parent::configure();
		
		/*
		 * Setting name of form
		*/
		$this->widgetSchema->setNameFormat('MasterSalaries[%s]');
		$this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);
	}
	
}
